package com.yanqu.road.entity.log.cross;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.ServerBaseLog;

/**
 * @Author : Cxp
 * @Time : 2024-11-29
 * @Description : 小当家自动回访日志
 */

@FieldTypeAnnotation(tableName = "t_c_activity_cookboy2_auto_join_log", desc = "小当家自动回访日志", autoSave = true, uploadCk = true, isCross = true)
public class LogCookBoy2AutoJoin extends ServerBaseLog {
    @FieldTypeAnnotation(desc = "活动ID", isIndex = true)
    private int activityId;

    @FieldTypeAnnotation(desc = "玩家ID", isIndex = true)
    private long userId;

    @FieldTypeAnnotation(desc = "区服ID")
    private long serverId;

    @FieldTypeAnnotation(desc = "摊主活动ID")
    private int hostActivityId;

    @FieldTypeAnnotation(desc = "摊主玩家ID")
    private long hostId;

    @FieldTypeAnnotation(desc = "摊主区服ID")
    private long hostServerId;

    @FieldTypeAnnotation(desc = "汤勺ID")
    private int spoonId;

    @FieldTypeAnnotation(desc = "桌子ID")
    private int tableId;

    @FieldTypeAnnotation(desc = "试吃时间")
    private long joinTime;

    public LogCookBoy2AutoJoin(int activityId, long userId, long serverId, int hostActivityId, long hostId, long hostServerId, int spoonId,
                               int tableId, long joinTime) {
        this.activityId = activityId;
        this.userId = userId;
        this.serverId = serverId;
        this.hostActivityId = hostActivityId;
        this.hostId = hostId;
        this.hostServerId = hostServerId;
        this.spoonId = spoonId;
        this.tableId = tableId;
        this.joinTime = joinTime;
    }

    @Override
    public long getUserId() {
        return userId;
    }
}
